package com.woniu.user.pojo;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 用户车辆表
 * </p>
 *
 * @author LiFangyu
 * @since 2023-02-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_user_car")
@ApiModel(value="UserCar对象", description="用户车辆表")
public class UserCar implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户ID")
    private String userId;

    @ApiModelProperty(value = "品牌名称")
    private String brand;

    @ApiModelProperty(value = "车辆类型")
    private String type;

    @ApiModelProperty(value = "生产年份")
    private String produceYear;

    @ApiModelProperty(value = "描述车辆状态")
    private String carStatus;

    @ApiModelProperty(value = "上次保养时间")
    private Date lastMaintain;

    @ApiModelProperty(value = "预计下次保养时间")
    private Date nextMaintain;

    @ApiModelProperty(value = "注册时间")
    private Date registerTime;

    @ApiModelProperty(value = "发动机排量")
    private String engineDisplacement;

    @ApiModelProperty(value = "公里数")
    private BigDecimal kilometers;

    @ApiModelProperty(value = "车辆照片")
    private String carPic;

    @ApiModelProperty(value = "逻辑删除;0:正常 1:删除")
    @TableLogic
    private String isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;


}
